//
//  AvaliblePID.h
//  ActiveDeck
//
//  Created by Laura McBride on 9/6/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "AD_PresentationInfo.h"


@interface AvailablePID : NSObject <NSNetServiceDelegate,NSNetServiceBrowserDelegate> 
{
    NSNetServiceBrowser *netServiceBrowser;
    NSMutableArray *BonjourServers;
    NSMutableArray *List_BjPID;
    NSMutableArray *List_PID;
    
    NSMutableArray *historyPID;
    NSLock *arrayLock;
}

@property (nonatomic, retain) NSMutableArray *List_BjPID;
@property (nonatomic, retain) NSMutableArray *List_PID;
@property (nonatomic, retain) NSMutableArray *historyPID;
@property (nonatomic, retain) NSLock *arrayLock;

- (void)stop;
- (BOOL)start;
- (NSString*)FetchPInfo:(NSString *)PID;
- (void)UpdatePinfo:(NSString*)presentationID;
- (void)updateList;
- (void)initialize;
- (int)PIDCount;
- (BOOL)hasPIDsAvailable;
- (AD_PresentationInfo*)GetPresInfoObject:(NSString*)presentationID;
-(void)updateHistoryPID:(NSString *)newEnterPID;

@end
